﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using CoreFrame.Business;
using System.Data;
using Newtonsoft.Json;

public class WyReportController : AbstractJqueryController
{
    public void GetCollectAccountData()
    {
        Hashtable hash = new Hashtable();
        hash.Add("bdate", ParamsData["bdate"]);
        hash.Add("edate", ParamsData["edate"]);

        AbstractGenericModel model = NewObject<AbstractGenericModel>("report");
        DataTable data = (DataTable)model.OperationDataModel("GetCollectAccountData", hash);

        PutOutData.Add("ReportPath", "Report\\CollectAccountReport.rdlc");
        //System.Collections.Generic.Dictionary<string, string> dic = new System.Collections.Generic.Dictionary<string, string>();
        //dic.Add("name", "kakake");
        //Session["ReportParameter"] = dic;
        DataSet ds=new DataSet();
        data.TableName="CollectAccountData";
        ds.Tables.Add(data.Copy());
        PutOutData.Add("ReportDataSource", ds);

        TxtJson = ReturnSuccess("");
    }
}